import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import 'highlight.js/styles/default.css' // 代码高亮的样式
import 'amfe-flexible' // 引入flexible.js 移动端适配的js文件
import directiveObj from '@/utils/directive'
import './VueComponent.js' // vant组件库注册 抽离成一个单独的js文件
// 执行目标对象里install方法并传入Vue类
Vue.use(directiveObj)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
axios({
  url: '/api/nc/article/headline/T1348647853363/0-40.html' // 注意在url前面加/api
}).then(res => {
  console.log(res)
})
